package operations;

import javax.swing.JTextArea;

public class ReplaceAllStrategy extends BaseClass implements ReplaceInterface{
	
	public void ReplacePattern(JTextArea text, String SearchedWord, String ReplacedWord) {
		DefinePattern(text,SearchedWord);
		if(SearcheWordSteream.find()){
			text.setText(SearcheWordSteream.replaceAll(ReplacedWord));
		}	
	}

}
